import { PUSH_DATA, USERCOMMENT_DATA } from './../action/actionType';
export let inform = (state = {
    navList: [
        { pathname: "/inform/push", text: "推送" },
        { pathname: "/inform/inter", text: "评论" },
    ],
    pushData: null,
    userCommentData: null,
}, action) => {
    let { type } = action;
    let newState = { ...state };
    switch (type) {
        case PUSH_DATA:
            newState.pushData = action.data;
            return newState
            break;
        case USERCOMMENT_DATA:
            newState.userCommentData = action.data;
            return newState
            break;
        default:
            return newState
            break;
    }
}